/*
 * Copyright (C) 2022 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#pragma once

namespace OHOS {
namespace HDI {
namespace NFC {
enum NfcEvent {
    OPEN_CPLT           = 0,
    CLOSE_CPLT          = 1,
    POST_INIT_CPLT      = 2,
    PRE_DISCOVER_CPLT   = 3,
    REQUEST_CONTROL     = 4,
    RELEASE_CONTROL     = 5,
    ERROR               = 6,
    HCI_NETWORK_RESET   = 7
};

enum NfcStatus {
    OK               = 0,
    FAILED           = 1,
    ERR_TRANSPORT    = 2,
    ERR_CMD_TIMEOUT  = 3,
    REFUSED          = 4
};

enum {
    HAL_NFC_OPEN_CPLT_EVT = 0u,
    HAL_NFC_CLOSE_CPLT_EVT = 1u,
    HAL_NFC_POST_INIT_CPLT_EVT = 2u,
    HAL_NFC_PRE_DISCOVER_CPLT_EVT = 3u,
    HAL_NFC_REQUEST_CONTROL_EVT = 4u,
    HAL_NFC_RELEASE_CONTROL_EVT = 5u,
    HAL_NFC_ERROR_EVT = 6u,
};

enum {
    HAL_NFC_STATUS_OK = 0u,
    HAL_NFC_STATUS_FAILED = 1u,
    HAL_NFC_STATUS_ERR_TRANSPORT = 2u,
    HAL_NFC_STATUS_ERR_CMD_TIMEOUT = 3u,
    HAL_NFC_STATUS_REFUSED = 4u,
};
}
}
}